#pragma once
#include "global.h"
#include <map>
using std::map;

class timer : public _timer {
public:

	timer(int _id);
	~timer();
	
	void timeout();
	void startTimer(int time, int utime = 0);
	void stopTimer();
private:
	int flag;// 0 no timer; 1 is timing
	int id;
};

extern map<int, timer*> g_TimerMap;




